package com.freecloud.javabasics.network.rpc.server.provider;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: maomao
 * @Date: 2020-03-15 22:06
 */
@Configuration
@ComponentScan(basePackages = "com.freecloud.javabasics.network.rpc")
public class SpringConfig {

    @Bean(name = "freeRpcServer")
    public FreeRpcServer freeRpcServer(){
        return new FreeRpcServer(8080);
    }
}
